﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="EvaluationFillingMode.aspx.cs" Inherits="BSCMFF.Web.Pages.Evaluation_Setup.EvaluationFillingMode" %>
<%@ Register Src="~/UserControls/Evaluation/CascadePKPIs.ascx" TagPrefix="bsc" TagName="CascadeKPIs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    
<div>
    <%--<fieldset>--%>
        <bsc:EvaluationDetails ID="ed" runat="server" IsEditMode="false" />
    <%--</fieldset>--%>
</div>

    
<div>
    <fieldset>
        <%--<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" >--%>
            <div style="float:left; padding-left:5px">
                <h2>
                    <asp:Label ID="LabelEmployee" runat="server" Text="Employee" ></asp:Label>
                </h2>
                <div style="float:left">
                    <asp:Label ID="LabelFullname" runat="server" Text="Fullname" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelDepartment" runat="server" Text="Department" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelJobPosition" runat="server" Text="Job Position" ></asp:Label>

                </div>
                <div id="divCurrentEmployee"  style="float:left; margin-left:10px; font-style:oblique">
                    <asp:Label ID="LabelCurrentFullname" runat="server" Text="Fullname" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelCurrentDepartment" runat="server" Text="Department" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelCurrentJobPosition" runat="server" Text="Job Position" ></asp:Label>
                </div>
            </div>
            <div style="float:right; padding-right:5px">
                <h2>
                    <asp:Label ID="LabelEvaluator" runat="server" Text="Evaluator" ></asp:Label>
                </h2>
                <div style="float:left">
                    <asp:Label ID="LabelEvaluatorFullname" runat="server" Text="Fullname" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelEvaluatorDepartment" runat="server" Text="Department" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelEvaluatorJobPosition" runat="server" Text="Job Position" ></asp:Label>

                </div>
                <div id="div1"  style="float:left; margin-left:10px; font-style:oblique">
                    <asp:Label ID="LabelCurrentEvaluatorFullname" runat="server" Text="Fullname" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelCurrentEvaluatorDepartment" runat="server" Text="Department" ></asp:Label>
                    <br />
                    <asp:Label ID="LabelCurrentEvaluatorJobPosition" runat="server" Text="Job Position" ></asp:Label>
                </div>
            </div>

            <%--<div style="float:right; height: 92px;">
                <bsc:EmployeeSelection ID="EmployeeSelection1" runat="server"   />
            </div>
        </telerik:RadAjaxPanel>--%>
    </fieldset>
    <asp:PlaceHolder ID="PlaceHolderInterviewPart" runat="server" Visible="false"  >   
        <fieldset>
            <div >
                <asp:Panel ID="PanelEvalInterview" runat="server" >
                    Interview
                    <fieldset>
                        <div>
                            <asp:Label ID="LabelDateOfInterview" runat="server" Text="Date Of Interview" ></asp:Label>
                            <%--<telerik:RadDatePicker ID="RadDatePickerDateOfInterview" runat="server" ></telerik:RadDatePicker>--%>
                            <asp:Label ID="LabelCurrentDateOfInterview" runat="server" ></asp:Label>
                        </div>
                    </fieldset>
                </asp:Panel>
            </div>
        </fieldset>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderPKPIsPart" runat="server" Visible="false" >
        <fieldset>
            <div>
                <asp:Panel ID="PanelPKPIs" runat="server" >
                    PKPIs
                    <fieldset>
                        <div>
                            <asp:Panel ID="PanelScale" runat="server" >
                                <asp:Label ID="LabelOrientationScale" runat="server" 
                                Text="Orientation Scale">
                                </asp:Label>

                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="LabelMinScore" runat="server" Text="Min" ></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="LabelCurrentMinScore" runat="server" Text="0" ></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="LabelTo1" runat="server" Text="To" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxTo1" runat="server" 
                                                MinValue="0" MaxValue="120" Value="40" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RadTextBoxVerbal1" runat="server" 
                                            Text="Employee doesn't full fill his targets" Width="300"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="LabelFrom2" runat="server" Text="From" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom2" runat="server" 
                                                MinValue="0" MaxValue="120" Value="41" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="LabelTo2" runat="server" Text="To" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxTo2" runat="server" 
                                                MinValue="0" MaxValue="120" Value="60" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RadTextBoxVerbal2" runat="server" 
                                            Text="Employee should work harder" Width="300"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label5" runat="server" Text="From" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom3" runat="server" 
                                                MinValue="0" MaxValue="120" Value="61" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label6" runat="server" Text="To" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxTo3" runat="server" 
                                                MinValue="0" MaxValue="120" Value="80" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RadTextBoxVerbal3" runat="server" 
                                            Text="Good Employee" Width="300"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label7" runat="server" Text="From" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom4" runat="server" 
                                                MinValue="0" MaxValue="120" Value="81" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label8" runat="server" Text="To" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxTo4" runat="server" 
                                                MinValue="0" MaxValue="120" Value="100" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RadTextBoxVerbal4" runat="server" 
                                            Text="Great Employee" Width="300"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label9" runat="server" Text="From" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom5" runat="server" 
                                                MinValue="0" MaxValue="120" Value="101" ShowSpinButtons="true"
                                                Width="40">
                                            <NumberFormat DecimalDigits="0" />    
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label10" runat="server" Text="Max" ></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label11" runat="server" Text="120" ></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RadTextBoxVerbal5" runat="server" 
                                            Text="Excelent Employee" Width="300"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <bsc:CascadeKPIs ID="Cascade" runat="server" />
                            
                            <asp:PlaceHolder ID="PlaceHolderEvaluatePKPIs" runat="server" >
                            
                            </asp:PlaceHolder>
                        </div>
                    </fieldset>
                </asp:Panel>
            </div>
        </fieldset>
    
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderCompetenciesPart" runat="server" Visible="false" >
        
        <fieldset>
        General Competencies
            <asp:PlaceHolder ID="PlaceHolderCategories" runat="server" > 
            <%--<bsc:EvaluationQuestionCategory ID="EQC" runat="server" IsEditMode="false" />--%>
    <%--
            <bsc:EvaluationQuestionCategoryEvalMode ID="ta" runat="server" ></bsc:EvaluationQuestionCategoryEvalMode>--%>
            </asp:PlaceHolder>
        </fieldset>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderRewardPart" runat="server" Visible="false" >
        <fieldset>
            <div>
                <%--<asp:Panel ID="PanelReward" runat="server" Visible="false" >--%>
                    <asp:Label ID="LabelReward" runat="server" Text="Reward"></asp:Label>
                    <fieldset>
                        <div>
                            <asp:Label ID="Label1" runat="server" 
                            Text="This Part serves for conditional rewarding system">
                            </asp:Label>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="LabelTestOnly" runat="server" 
                                        Text="For Testing Purpose Only">
                                        </asp:Label>
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="CheckBoxTestOnly" runat="server" ToolTip="Is it real or testing reward system?" />
                                    </td>
                                </tr>
                            </table>
                            <br /><br />
                            <asp:Panel ID="PanelRewardPKPISettings" runat="server" Visible="false" >
                                <asp:Label ID="Label2" runat="server" 
                                        Text="Settings for Personal KPI achievment">
                                        </asp:Label>
                                        <br /><br />
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label3" runat="server" 
                                            Text="Reward From Score">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxPKPIsFrom" runat="server" 
                                                MinValue="0" MaxValue="120" Width="30" Value="80">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td style="padding-left:20px">
                                            <asp:Label ID="Label12" runat="server" 
                                            Text="Bonus Percentage From">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxMinCoef" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="5"
                                                Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label4" runat="server" 
                                            Text="Reward To">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label13" runat="server" 
                                            Text="120">
                                            </asp:Label>
                                        </td>
                                        <td style="padding-left:20px">
                                            <asp:Label ID="Label14" runat="server" 
                                            Text="Bonus Percentage To">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxMaxCoef" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="15"
                                                Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <asp:Panel ID="PanelRewardCompetenciesSetting" runat="server" Visible="false" >
                                <asp:Label ID="Label15" runat="server" 
                                        Text="Settings for General Competencies achievement">
                                        </asp:Label>
                                        <br /><br />
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label16" runat="server" 
                                            Text="Reward Top">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxCompetencyTop" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="10" Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label17" runat="server" 
                                            Text="Employees">
                                            </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label20" runat="server" 
                                            Text="Bonus Percentage">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxCompetencyCoef" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="10"
                                                Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </div>
                    </fieldset>
                <%--</asp:Panel>--%>
            </div>
        </fieldset>
    
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderOveralEval" runat="server" Visible="true">
        <fieldset>
            <table>
                <tr>
                    <td valign="top">
                        <asp:Label ID="LabelOveralEvaluatorEval" runat="server" Text="Overal Evaluator Evaluation" ></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBoxOveralEvaluatorEval" runat="server" TextMode="MultiLine"
                        Height="50" Width="600" Enabled="true">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <asp:Label ID="LabelEmployeeReaction" runat="server" Text="Employee Reaction" ></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBoxEmployeeReaction" runat="server" TextMode="MultiLine"
                        Height="50" Width="600" Enabled="true">
                        </telerik:RadTextBox>
                    </td>
                </tr>
            </table>
            
        </fieldset>
    </asp:PlaceHolder>
    
    <telerik:RadButton ID="RadButtonEvaluate" runat="server" Text="Evaluate" 
        onclick="RadButtonEvaluate_Click"></telerik:RadButton>
    <telerik:RadButton ID="RadButtonConfirmInterview" runat="server" Text="Confirm Interview" 
    onclick="RadButtonConfirmInterview_Click"></telerik:RadButton>
    <telerik:RadButton ID="RadButtonSave" runat="server" Text="Update Evaluation"
    onclick="RadButtonChange_Click">
    </telerik:RadButton>
    <telerik:RadButton ID="RadButtonCancel" runat="server" Text="Cancel"
    onclick="RadButtonCancel_Click"></telerik:RadButton>
    <telerik:RadButton ID="RadButtonBack" runat="server" Text="Back" Visible="false"
    onclick="RadButtonBack_Click"></telerik:RadButton>
    <telerik:RadButton ID="RadButtonDelete" runat="server" Text="Delete"
    onclick="RadButtonDelete_Click"></telerik:RadButton>
    <br /><br /><br /><br />
</div>

</asp:Content>
